FROM python:3.9.6-alpine AS builder

WORKDIR /opt/
RUN apk update
RUN apk add --no-cache build-base gcc libc6-compat
RUN apk add --no-cache python3-dev
RUN apk add gcc python3-dev musl-dev linux-headers
# 把当前的golang所有代码拷贝进去
COPY . .
COPY ./requirements.txt requirements.txt
RUN pip install -r requirements.txt
EXPOSE 5000
EXPOSE 8000
CMD python3 -m flask --app start run -h 0.0.0.0 -p 8000